package main

import "fmt"

func main() {
	for num := 100; num < 1000; num++ {
		n1 := num / 100     //百位数
		n2 := num / 10 % 10 //十位数
		n3 := num % 10      //个位数

		//判断
		if n1*n1*n1+n2*n2*n2+n3*n3*n3 == num {
			fmt.Println(num, "是水仙花数")
		}
	}
}
